/*
 * Created on Apr 26, 2005
 */
package quickup;

/**
 * @author Jeffrey Ravenhorst
 */
public class Debug {
	private static boolean verbose = false;
	public static void setEnabled(boolean on) {verbose = on;}
	public static boolean getEnabled() {return verbose;}
	public static void out(Object txt) {if(verbose){System.out.print(txt);}}
	public static void outln(Object txt) {if(verbose){System.out.println("# " + txt);}}
	public static void showError(Object txt) {if(verbose) QuickUp.showError(txt.toString());}
	public static void showWarning(Object txt) {if(verbose) QuickUp.showWarning(txt.toString());}
}
